include ../../../makeEnviroment.conf
SRCS = $(wildcard *.c)
CFLAGS += 

TARGET = test

$(info srcs: $(SRCS))
OBJS = $(patsubst %.c,%.o,$(SRCS))
$(info objs: $(OBJS))

all:sublib $(OBJS)
	$(GCC) -o $(TARGET) $(OBJS) $(CFLAGS) -pthread -O3 -L./libsrc -ladd

$(OBJS):%.o:%.c
	$(GCC) -c $^ -o $@ $(CFLAGS) -I./libsrc

sublib:
	make -C ./libsrc
subclean:
	make -C ./libsrc clean


clean:subclean
	rm -rf *.o $(TARGET) $(OBJS) *.tgz *.zip packzip
